package com.uinfor.service;

import com.uinfor.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("seata-storage-server")
public interface IStorageService {
    @PostMapping("/storage/decrease")
    Result decrease(@RequestParam("productId")Long productId,@RequestParam("count")Integer count);
}
